﻿@namespace Masa.Blazor.Presets
@inherits PatternPathComponentBase

<div class="@GetClass()"
     style="@GetStyle()"
     id="@Id"
     @ref="Ref"
     @attributes="Attributes">
    @foreach (var path in _patternPaths.OrderBy(u => u.CreatedAt))
    {
        <div class="@_block.Element("item").AddClass("d-none", path.Pattern != _currentPatternPath?.Pattern)"
             @key="path.Pattern">
            <BShouldRender Value="@(path.Pattern == GetCurrentPatternPath().Pattern)">
                @ChildContent
            </BShouldRender>
        </div>
    }
</div>